import Router from "koa-router";

import Handler from "../models/test/handler";

export default function () {
    const router  = new Router();
    const handler = new Handler();

    router.get('/', async (ctx) => {
        // ctx.request.body
        ctx.rest(await handler.helloWorld(ctx.request.query));
    });

    return router;
};